home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MUNMAP C Library Procedures MUNMAP
-
-
-
- NNAAMMEE
- munmap - unmap part of the process's address space
-
- SSYYNNOOPPSSIISS
- NNOOTTEE:: tthhiiss mmaann ppaaggee iiss iinnaaccccuurraattee..
- mmuunnmmaapp((aaddddrr,, lleenn))
- ccaaddddrr__tt aaddddrr;; //** ssttaarrttiinngg vviirrtt--aaddddrr **//
- iinntt lleenn;; //** lleennggtthh ((bbyytteess)) ttoo uunnmmaapp **//
-
- DDEESSCCRRIIPPTTIIOONN
- _M_u_n_m_a_p removes a mapping created by _m_m_a_p(2). The _a_d_d_r and
- _l_e_n arguments must be integral multiples of the system page
- size, as defined by _g_e_t_p_a_g_e_s_i_z_e(2).
-
- After successful completion of _m_u_n_m_a_p, the address space
- from _a_d_d_r through _a_d_d_r+_l_e_n-_1 does not exist and will result
- in a segmentation fault (SIGSEGV) if referenced.
-
- RREETTUURRNN VVAALLUUEE
- Munmap returns zero when successful. Otherwise it returns
- -1 and places the error number in the global variable _e_r_r_n_o.
-
- EERRRROORRSS
- [EINVAL] _A_d_d_r or _l_e_n is not a multiple of the system
- page size.
-
- [EINVAL] The area defined by _a_d_d_r and _l_e_n overlaps the
- text or stack segment or a non-existent part
- of the address space.
-
- SSEEEE AALLSSOO
- mmap(2), vm_ctl(2), getpagesize(2)
-
- NNOOTTEESS
- The current implementation can unmap only data space.
-
- Any address space holes created by _m_u_n_m_a_p read as zeroes in
- a core file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DYNIX 1
-
-
-
-